package com.HuiShou.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.HuiShou.mapper.RecycleOrderMapper;
import com.HuiShou.domain.RecycleOrder;
import com.HuiShou.service.IRecycleOrderService;

/**
 * 回收订单Service业务层处理
 * 
 * @author lyz
 * @date 2025-02-26
 */
@Service
public class RecycleOrderServiceImpl implements IRecycleOrderService 
{
    @Autowired
    private RecycleOrderMapper recycleOrderMapper;

    /**
     * 查询回收订单
     * 
     * @param orderId 回收订单主键
     * @return 回收订单
     */
    @Override
    public RecycleOrder selectRecycleOrderByOrderId(String orderId)
    {
        return recycleOrderMapper.selectRecycleOrderByOrderId(orderId);
    }

    /**
     * 查询回收订单列表
     * 
     * @param recycleOrder 回收订单
     * @return 回收订单
     */
    @Override
    public List<RecycleOrder> selectRecycleOrderList(RecycleOrder recycleOrder)
    {
        return recycleOrderMapper.selectRecycleOrderList(recycleOrder);
    }

    /**
     * 新增回收订单
     * 
     * @param recycleOrder 回收订单
     * @return 结果
     */
    @Override
    public int insertRecycleOrder(RecycleOrder recycleOrder)
    {


        return recycleOrderMapper.insertRecycleOrder(recycleOrder);
    }

    /**
     * 修改回收订单
     * 
     * @param recycleOrder 回收订单
     * @return 结果
     */
    @Override
    public int updateRecycleOrder(RecycleOrder recycleOrder)
    {
        return recycleOrderMapper.updateRecycleOrder(recycleOrder);
    }

    /**
     * 批量删除回收订单
     * 
     * @param orderIds 需要删除的回收订单主键
     * @return 结果
     */
    @Override
    public int deleteRecycleOrderByOrderIds(String[] orderIds)
    {
        return recycleOrderMapper.deleteRecycleOrderByOrderIds(orderIds);
    }

    /**
     * 删除回收订单信息
     * 
     * @param orderId 回收订单主键
     * @return 结果
     */
    @Override
    public int deleteRecycleOrderByOrderId(String orderId)
    {
        return recycleOrderMapper.deleteRecycleOrderByOrderId(orderId);
    }
}
